func (m *default{{.upperStartCamelObject}}Model) FindOneBy{{.upperField}}(ctx context.Context, {{.in}}) (*{{.upperStartCamelObject}}, error) {
	var resp {{.upperStartCamelObject}}

	var res = &jrpc.Response{}
	var err error

    res, err = m.Call(ctx, "FindOneBy{{.upperField}}", {{.lowerStartCamelField}})
	if err != nil {
		return nil, err
	}

	if res.Error != nil {
		return nil, res.Error
	}

	err = res.GetObject(&resp)
	if err != nil {
		return nil, err
	}

	return &resp, nil
}
